<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="Bookmark" href="../imgs/bai.ico">
    <link rel="Shortcut Icon" href="../imgs/bai.ico"/>
    <link rel="stylesheet" type="text/css" href="../css/view.css"/>
    <title>工作台</title>
    <style type="text/css">
        body { margin: 0; background: #efefef; }
        #tbody { margin: 50px 2%; margin-bottom: 100px; height: 85vh; overflow: auto; }
        #tbody .fgroup { padding: 10px; background: #fff; border: 1px solid #ddd; border-radius: 5px; }
        #tbody .group { padding: 5px; padding-bottom: 10px; }
        #tbody .title { color: #555; }
        #tbody input, #tbody select { margin-top: 5px; padding: 10px; width: 100%; border: 1px solid #ddd; border-radius: 3px; }
        #tbody .group button { margin: 0 20%; padding: 10px 0; width: 60%; background: #fff; border: 1px solid #ccc; border-radius: 5px; color: #888; }
        #fbtn { padding: 5px 5vw; width: 90vw; background: #fff; position: fixed; bottom: 0; left: 0; z-index: 10; }
        #fbtn button { margin: 10px 25%; padding: 8px 0; width: 50%; border: none; border-radius: 5px; background: #0088CC; color: #fff; }
        .toHome { color: #888; float: right; }
    </style>
</head>
<body>
<!--顶部-->
<div id="header">
    <div class="zjt" onclick="history.go(-1);">
        <img src="../imgs/icon-zjt.png"/>
    </div>
    <div class="title">工时录入
        <span class="toHome" onclick="window.location.href='/h5/index.html';">回主页</span>
    </div>
</div>

<!--主体-->
<div id="tbody">
    <div class="fgroup">
        <div class="group">
            <div class="title">
                <span style="color: red;">*</span>
                工时项：
            </div>
            <span id="pid_show"></span>
            <!--<select id="config_whid" onchange="getCntList();">-->
                <!--<option value="">-选择-</option>-->
            <!--</select>-->
        </div>
        <div class="group">
            <div class="title">
                <span style="color: red;">*</span>
                工时内容：
            </div>
            <select id="cnt_id">
                <option value="">-选择-</option>
            </select>
        </div>
        <div class="group">
            <div class="title">
                <span style="color: red;">*</span>
                开始时间：
            </div>
            <select id="starthour" onchange="delayByTime();">
                <option value="">-选择-</option>
            </select>
        </div>
        <div class="group">
            <div class="title">
                <span style="color: red;">*</span>
                结束时间：
            </div>
            <select id="endhour" onchange="delayByTime();">
                <option value="">-选择-</option>
            </select>
        </div>
        <div class="group">
            <div class="title">总工时：</div>
            <input type="text" class="input-text" id="delay" placeholder="自动计算" readonly/>
        </div>
    </div>
</div>
<div id="fbtn">
    <button onclick="modify();">保 存</button>
    <!-- <button onclick="toAuth();">提 交</button> -->
</div>


<!--编辑弹窗-->
<div id="formPop"></div>
<!--信息弹窗-->
<div id="msgPop"></div>
</body>
</html>


<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../../admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="../../admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript" src="../js/ws-wh/whyw-cnt.js"></script>
<script type="text/javascript">
//    var cw = document.documentElement.clientWidth;
//    var ch = document.documentElement.clientHeight;
    var id = getParamByUrl('id');
    var wh_id = getParamByUrl('wh_id');
    var config_whid = getParamByUrl('config_whid');
    var config_title = getParamByUrl('config_title');
    var cnt_id = getParamByUrl('cnt_id');
    var cnt_str = getParamByUrl('cnt_str');
    config_whid = config_whid ? config_whid : 0;
    config_title = config_title ? config_title : '';
    console.log(config_whid, config_title);
    (function () {
        getOne();
    })();
</script>